package com.ruoyi.production.domain.graftingclip;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 嫁接夹购买信息对象 graftingclip_purchase
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public class GraftingclipPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long graftingclipPurchaseId;

    /** 类型 */
    @Excel(name = "类型")
    private Long graftingclipTypeId;

    /** 产地 */
    @Excel(name = "产地")
    private String originPlace;

    /** 口径型号 */
    @Excel(name = "口径型号")
    private String graftingclipSpecification;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 购买量 */
    @Excel(name = "购买量")
    private Long purchaseAmount;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseTime;

    /** 单价 */
    @Excel(name = "单价")
    private Long price;

    /** 总价 */
    @Excel(name = "总价")
    private Long totalPrice;

    /** 备注 */
    @Excel(name = "备注")
    private String note;

    public void setGraftingclipPurchaseId(Long graftingclipPurchaseId)
    {
        this.graftingclipPurchaseId = graftingclipPurchaseId;
    }

    public Long getGraftingclipPurchaseId()
    {
        return graftingclipPurchaseId;
    }
    public void setGraftingclipTypeId(Long graftingclipTypeId)
    {
        this.graftingclipTypeId = graftingclipTypeId;
    }

    public Long getGraftingclipTypeId()
    {
        return graftingclipTypeId;
    }
    public void setOriginPlace(String originPlace)
    {
        this.originPlace = originPlace;
    }

    public String getOriginPlace()
    {
        return originPlace;
    }
    public void setGraftingclipSpecification(String graftingclipSpecification)
    {
        this.graftingclipSpecification = graftingclipSpecification;
    }

    public String getGraftingclipSpecification()
    {
        return graftingclipSpecification;
    }
    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }

    public String getOriginCompany()
    {
        return originCompany;
    }
    public void setPurchaseAmount(Long purchaseAmount)
    {
        this.purchaseAmount = purchaseAmount;
    }

    public Long getPurchaseAmount()
    {
        return purchaseAmount;
    }
    public void setPurchaseTime(Date purchaseTime)
    {
        this.purchaseTime = purchaseTime;
    }

    public Date getPurchaseTime()
    {
        return purchaseTime;
    }
    public void setPrice(Long price)
    {
        this.price = price;
    }

    public Long getPrice()
    {
        return price;
    }
    public void setTotalPrice(Long totalPrice)
    {
        this.totalPrice = totalPrice;
    }

    public Long getTotalPrice()
    {
        return totalPrice;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("graftingclipPurchaseId", getGraftingclipPurchaseId())
            .append("graftingclipTypeId", getGraftingclipTypeId())
            .append("originPlace", getOriginPlace())
            .append("graftingclipSpecification", getGraftingclipSpecification())
            .append("originCompany", getOriginCompany())
            .append("purchaseAmount", getPurchaseAmount())
            .append("purchaseTime", getPurchaseTime())
            .append("price", getPrice())
            .append("totalPrice", getTotalPrice())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
